/*
 * @Author: Kang
 * @Date: 2021-11-25 14:33:04
 * @Last Modified by: Kang
 * @LastEditTime: 2022-02-11 22:49:30
 */
'use strict';
/* egg_folder/app/contract/format.js */
const createUserResBase = {
  id: { type: 'integer', required: true, description: 'id' },
  name: { type: 'string', required: true, description: '用户姓名' },
  age: { type: 'integer', required: true, min: 1, description: '年龄' },
};


const JsonBody = { // 这个名字对应上面 Controller 注释的@response 的 JsonBody。
  result: { type: 'string' }, // 服务器返回的数据。
};

const Upload = {
  fileName: { type: 'string', required: true, description: 'fileName' }, // 服务器返回的数据。
};

module.exports = {
  createUserResponse: createUserResBase,
  JsonBodyResponse: JsonBody,
  updateUserResponse: createUserResBase,
  uploadResponse: Upload,
};
